#!/bin/sh
cd /media/Wang/CS/Code/编译原理/Decaf_PA2/
ant
cd /media/Wang/CS/Code/编译原理/Decaf_PA2/TestCases/S2
mv /media/Wang/CS/Code/编译原理/Decaf_PA2/result/decaf.jar decaf.jar
for i in `ls *.decaf`;
do
echo  "${i%.*}.result"
java -jar decaf.jar -l 0 $i > output/${i%.*}.result;
done